package com.hiof.activities;

import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.hiof.Configuration;
import com.hiof.R;
import com.hiof.overlays.OverlayController;

/**
 * Created with IntelliJ IDEA.
 * User: manish
 * Date: 4/17/12
 * Time: 2:41 AM
 * To change this template use File | Settings | File Templates.
 */
public class UserMapView extends MapActivity {
    MapView mapView;
    OverlayController overlayController;
    private MapController mapController;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Configuration.getInstance().setCurrentContext(this);
        setContentView(R.layout.map_view);
    }
    private void initLocationFuntionality() {
        mapView = (MapView) findViewById(R.id.mapview);
        if (overlayController == null)
            overlayController = new OverlayController(this,mapView);

//        LiveLocationManager.initializeLiveLocationManger(this);

        mapController = mapView.getController();
        mapView.getController().setZoom(15);
        mapView.setBuiltInZoomControls(false);
//        mapController.animateTo(LiveLocationManager.getLiveLocationManager()
//                .getOwnGeoPoint());
    }
    @Override
    protected boolean isRouteDisplayed() {
        return true;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
